<template>
  <div class="common-layout">
    <el-container class="el-container-box">
      <!--侧边栏菜单 -->
        <common-aside></common-aside>
      <el-container>
        <el-header class="el-header-box">
          <!-- 头部 -->
          <common-header></common-header>
        </el-header>
        <el-main class="el-main-box">
          <!-- tag标签 -->
          <common-tag></common-tag>
          <!-- 路由出口/页面 -->
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script setup>
import CommonAside from '../components/CommonAside.vue';
import CommonHeader from '../components/CommonHeader.vue';
import CommonTag from '../components/CommonTag.vue';
</script>

<style lang="less">
.common-layout{
  height: 100%;
  .el-container-box{
    height: 100%;
    .el-aside{
      background-color: #545454;
    }
  }
  .el-header-box{
    background-color: #ffff;
    display: flex;
    align-items: center;
  }
}

.el-main-box{
padding: 8px;
}

</style>